<template>
	<view class="share">
		<view class="share-header">
			<view class="">
				<image class="share-header-weixin" src="../../static/image/weixin.png" mode=""></image>
			</view>
			<view class="share-header-title">
				微信分享让你的招聘让更多人看到！
			</view>
			<view class="share-sum">
				使用分享可以让你得到更多免费发布职位的机会！
			</view>
			<button  class="share-btn"  open-type="share">立即分享</button>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				shareNum : 3,
				sharedNum: 0,
				toshareNum:3,
				recruitId:''
			}
		},
		onLoad(e) {
			this.recruitId = e.id;
		},
		onShareAppMessage(res)  {
			
		  return {
			title: '我在云招人上发布了招聘，快来看看吧！',
			path: '/pages/index/index',
			imageUrl:'../../static/image/share.jpg',
			success: (res) => {
				console.log("转发成功", res);
			  },
			  fail: (res) => {
				console.log("转发失败", res);
			  }
		  }
		},
		methods:{
			
		}
	}
</script>

<style>
	.share{
		text-align: center;
	}
	.share-header{
		margin-top:100rpx;
	}
	.share-header-weixin{
		width:100rpx;
		height: 100rpx;
	}
	.share-header-title{
		margin-top:30rpx;
	}
	.share-sum{
		margin-top:100rpx;
		color:#4CD964;
	}
	.share-sum-num{
		color:#DD524D;
		font-weight: 600;
	}
	
	.share-btn{
		width:80%;
		background-color: #DD524D;
		color:#fff;
		margin-top:100rpx;
	}
</style>
